Process the image in quadratic elements